<?xml version="1.0"?>
<!-- 
 - Format Type  : BITMAP
 - Author       : naggingmachine
 - Date         : 2008.03.07
 - Contract     : naggingmachine@gmail.com
 - Version : 0.1
 
 - History
 
-->

<BITMAP name="Bitmap File (no compression)" signature="0x424D" signature_offset="0">
  <BITMAPFILEHEADER name="BITMAPFILEHEADER" comment="The BITMAPFILEHEADER structure contains information about the type, size, and layout of a file that contains a DIB.">
    <bfType name="bfType" size="2" comment="Specifies the file type, must be BM" />
    <bfSize name="bfSize" size="4" comment="Specifies the size, in bytes, of the bitmap file. " />
    <bfReserved1 name="bfReserved1" size="2" comment="Reserved; must be zero. " />
    <bfReserved2 name="bfReserved2" size="2" comment="Reserved; must be zero. " />
    <bfOffBits name="bfOffBits" size="4" comment="Specifies the offset, in bytes, from the BITMAPFILEHEADER structure to the bitmap bits." />
  </BITMAPFILEHEADER>

  <BITMAPINFOHEADER name="BITMAPINFOHEADER">
    <biSize name="biSize" size="4" comment="Specifies the number of bytes required by the structure. " />
    <biWidth name="biWidth" size="4" comment="Specifies the width of the bitmap, in pixels." />
    <biHeight name="biHeight" size="4" comment="Specifies the height of the bitmap, in pixels." />
    <biPlanes name="biPlanes" size="2" comment="Specifies the number of planes for the target device. This value must be set to 1. " />
    <biBitCount name="biBitCount" size="2" comment="Specifies the number of bits-per-pixel." />
    <biCompression name="biCompression" size="4" comment="Specifies the type of compression for a compressed bottom-up bitmap (top-down DIBs cannot be compressed)." />
    <biSizeImage name="biSizeImage" size="4" comment="Specifies the size, in bytes, of the image." />
    <biXPelsPerMeter name="biXPelsPerMeter" size="4" comment="Specifies the horizontal resolution, in pixels-per-meter, of the target device for the bitmap." />
    <biYPelsPerMeter name="biYPelsPerMeter" size="4" comment="Specifies the vertical resolution, in pixels-per-meter, of the target device for the bitmap." />
    <biClrUsed name="biClrUsed" size="4" comment="Specifies the number of color indexes in the color table that are actually used by the bitmap." />
    <biClrImportant name="biClrImportant" size="4" comment="Specifies the number of color indexes that are required for displaying the bitmap." />
  </BITMAPINFOHEADER>

  <!-- [Note]
       If you include RGBQUAD element, it will take long time
       depending on the size of the image. So, not recommend.
  -->
  <!--
  <FM_COMMAND_REPEAT count="(#BITMAP\BITMAPFILEHEADER\bfSize - !BITMAP\BITMAPFILEHEADER - !BITMAP\BITMAPINFOHEADER)/4">
    <RGBQUAD name="RGBQUAD" comment="The RGBQUAD structure describes a color consisting of relative intensities of red, green, and blue.">
      <rgbBlue name="rgbBlue" size="1" comment="Specifies the intensity of blue in the color. " />
      <rgbGreen name="rgbGreen" size="1" comment="Specifies the intensity of green in the color. " />
      <rgbRed name="rgbRed" size="1" comment="Specifies the intensity of red in the color. " />
      <rgbReserved name="rgbReserved" size="1" comment="Reserved; must be zero." />
    </RGBQUAD>
  </FM_COMMAND_REPEAT>
  -->
</BITMAP>

